package com.yunhe.policyfulfillment.policyful.service;

import com.github.pagehelper.PageInfo;
import com.yunhe.common.model.mybatis.PageResult;
import com.yunhe.policyfulfillment.policyful.domain.PolicyInfo;
import com.yunhe.policyfulfillment.policyful.model.PolicyInfoQueryCondition;

import java.text.ParseException;
import java.util.List;

public interface PolicyInfoService {

    void deleteByIds(String ids);

    int insert(PolicyInfo record) throws ParseException;

    PolicyInfo selectByPrimaryKey(Long id);

    void updateByPrimaryKeySelective(PolicyInfo record) throws ParseException;

    List<PolicyInfo> selectByCondition(PolicyInfoQueryCondition condition);

    List<PolicyInfo> selectEightData(String title);

    PageResult selectByConditionForPage(PolicyInfoQueryCondition condition);

    void onlineOrOffline(PolicyInfo record);

    void patchOffline(String ids);

    //定时发布政策
    void publishTimedPolicyInfo();

}